package com.mentalhealth.diary.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mentalhealth.diary.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 会员表Mapper接口
 * 继承BaseMapper提供基础CRUD操作
 */
@Mapper
public interface MemberMapper extends BaseMapper<Member> {
    
    /**
     * 根据用户ID查询会员信息
     * @param userId 用户ID
     * @return 会员信息
     */
    @Select("select * from member where user_id = #{userId}")
    Member selectByUserId(Long userId);
}